﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace PhotoGallery.Data.Entity
{
    public class Audio
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public string FileName { get; set; }
        public string Thumbnail { get; set; }
        public string Description { get; set; }
        public DateTime? UploadedOn { get; set; }
        public DateTime? ModifiedOn { get; set; }
        public DateTime? DeletedOn { get; set; }
        public SharedAlbum Shared { get; set; }

        private int _orderNumber;
        public int OrderNumber { get { return _orderNumber; } }

        private bool _active;
        public bool Active { get { return _active; } }

        public Audio()
        {
            _active = true;
        }

        public Audio(int id, string title, string fileName, string thumbnail, string description, DateTime? uploadedOn, DateTime? modifiedOn, DateTime? deletedOn, SharedAlbum shared, int orderNumber, bool active = true)
        {
            ID = id;
            Title = title;
            FileName = fileName;
            Thumbnail = thumbnail;
            Description = description;
            ModifiedOn = modifiedOn;
            UploadedOn = uploadedOn;
            DeletedOn = deletedOn;
            Shared = shared;
            _orderNumber = orderNumber;
            _active = active;
        }
    }
}